// import com.alibaba.druid.sql.ast.SQLExpr;
// import com.alibaba.druid.sql.ast.SQLName;
// import com.alibaba.druid.sql.ast.SQLStatementImpl;
// import com.alibaba.druid.sql.visitor.SQLASTVisitor;

#include "SQLSyncMetaStatement.h"
#include "../../visitor/SQLASTVisitor.h"
#include "../SQLName.h"

// @Override
void SQLSyncMetaStatement::accept0(SQLASTVisitor_ptr v)
{
  if (v->visit(SharedObject(SQLSyncMetaStatement)))
  {
    acceptChild(v, from);
    acceptChild(v, like);
  }
  v->endVisit(SharedObject(SQLSyncMetaStatement));
}

BOOL_ptr SQLSyncMetaStatement::getRestrict()
{
  return restrict;
}

void SQLSyncMetaStatement::setRestrict(BOOL_ptr restrict)
{
  this->restrict = restrict;
}

BOOL_ptr SQLSyncMetaStatement::getIgnore()
{
  return ignore;
}

void SQLSyncMetaStatement::setIgnore(BOOL_ptr ignore)
{
  this->ignore = ignore;
}

SQLName_ptr SQLSyncMetaStatement::getFrom()
{
  return from;
}

void SQLSyncMetaStatement::setFrom(SQLName_ptr from)
{
  this->from = from;
}

SQLExpr_ptr SQLSyncMetaStatement::getLike()
{
  return like;
}

void SQLSyncMetaStatement::setLike(SQLExpr_ptr like)
{
  this->like = like;
}
